package com.mdd.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel("总台账号实体")
@TableName("business_user")
public class BusinessUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "")
    private String id;

    @ApiModelProperty(value = "地区id")
    private Long aId;

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "头像")
    private String avatar;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "真实姓名")
    private String realname;

    @ApiModelProperty(value = "联系手机")
    private String mobile;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "")
    private String token;

    @ApiModelProperty(value = "最后一次更新密码时间")
    private Long lastPwdUpdateTime;

    @ApiModelProperty(value = "最后登陆时间")
    private Long lastLoginTime;

    @ApiModelProperty(value = "最后登陆ip")
    private String lastLoginIp;

    @ApiModelProperty(value = "登陆次数")
    private Long loginCount;

}